.PHONY:all
all:servercal clientcal

Flag=#-DMyself1=1
Lib=-ljsoncpp

servercal:server.cc
	g++ -o $@ $^ -g -Wall -std=c++11 $(Lib) $(Flag)

clientcal:client.cc
	g++ -o $@ $^ -g -Wall -std=c++11 $(Lib) $(Flag)

.PHONY:clean
clean:
	rm servercal clientcal